
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input  class="form-control" name="row[mobile]" type="text" value="{$row.mobile}" readonly="readonly">
        </div>
    </div>
	<div class="form-group">
	    <label for="c-name" class="control-label col-xs-12 col-sm-2">奖品名称:</label>
	    <div class="col-xs-12 col-sm-8">
	        <input  class="form-control"  type="text" value="{$row.prize_name}" readonly="readonly">
	    </div>
	</div>
	<div class="form-group">
	    <label for="c-name" class="control-label col-xs-12 col-sm-2">奖品类型:</label>
	    <div class="col-xs-12 col-sm-8">
	        <input  class="form-control"  type="text"
			{switch $row.type }
			    {case 1 }value="实物"{/case}
			    {case 2}value="充值卡"{/case}
			    {case 3}value="谢谢参与"{/case}
			    {case 4}value="再来一次"{/case}
			    {default /}默认情况
			{/switch}
			 
			 readonly="readonly">
	    </div>
	</div>
	{eq name="$row.type" value="1"}
		<div class="form-group">
			<label for="c-name" class="control-label col-xs-12 col-sm-2">收货人:</label>
			<div class="col-xs-12 col-sm-8">
				<input  class="form-control"  type="text" value="{$row.username}" readonly="readonly">
			</div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">收货手机号:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.recharge_mobile}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">收货地址:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.address}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">物流名称:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.logistics_name}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">快递单号:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.express_number}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">是否发货:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" {eq name="$row.state" value="0"} value="未发货" {else/} value="已发货" {/eq} readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">发货时间:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.deliver_time|date='Y-m-d H:i:s',###}" readonly="readonly">
		    </div>
		</div>
	{/eq}
	{eq name="$row.type" value="2"}
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">充值手机号:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.recharge_mobile}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">商品编码:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.goods_code}" readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">是否充值:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" {eq name="$row.state" value="0"} value="未充值" {else/} value="已充值" {/eq} readonly="readonly">
		    </div>
		</div>
		<div class="form-group">
		    <label for="c-name" class="control-label col-xs-12 col-sm-2">充值成功时间:</label>
		    <div class="col-xs-12 col-sm-8">
		        <input  class="form-control"  type="text" value="{$row.deliver_time|date='Y-m-d H:i:s',###}" readonly="readonly">
		    </div>
		</div>
	{/eq}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
        </div>
    </div>
</form>

